import request from '@/utils/request'
import { praseStrEmpty } from '@/utils/sg'
// 根据id查询驾驶证
export function getDriverLicense(driverId) {
  return request({
    url: '/driver/api/v1/license',
    method: 'get',
    params:{
        driverId:driverId
    }
  })
}

// 修改用户
export function updateLicense(id,driverId,validityTime,carType,issueUnit,licenseImage) {
    return request({
      url: '/driver/api/v1/license/updateLicense',
      method: 'post',
      params:{
        id:id,
        driverId:driverId,
        validityTime:validityTime,
        carType:carType,
        issueUnit:issueUnit,
        licenseImage:licenseImage
      }
    })
  }
